import request from '@/utils/request'

// 查询验收列表
export function listDriverCheck(query) {
  return request({
    url: '/receive/drivercheck/list',
    method: 'get',
    params: query
  })
}



// 新增回执
export function addReceipt(data) {
  return request({
    url: '/receive/drivercheck/insertreceipt',
    method: 'post',
    data: data
  })
}

// 验证
export function updateDriverCheck(data) {
  return request({
    url: '/receive/drivercheck/sure',
    method: 'post',
    data: data
  })
}

// 请求差错记录
export function listError(query) {
  return request({
    url: '/receive/aError/queryById',
    method: 'get',
    params: query
  })
}
// 新增差错请求
export function insertError(query) {
  return request({
    url: '/receive/aError/add',
    method: 'get',
    params: query
  })
}
// 请求回执记录
export function listADriverReceipt(query) {
  return request({
    url: '/receive/aDriverReceipt/queryById',
    method: 'get',
    params: query
  })
}
// 新增回执
export function uploadErrorImgs(data) {
  return request({
    url: '/receive/aError/uploadErrorImgs',
    method: 'post',
    data: data
  })
}
